package com.yanqu.road.entity.activity.suitang.enums;

public enum eSuiTangWarType {
    WAR_TYPE_YIJUN(1, "义军战场"),
    WAR_TYPE_XIAOQI(2, "骁骑战场"),
    WAR_TYPE_JINJUN(3, "禁军战场"),
    ;


    /**
     * 类型
     */
    private int type;

    /**
     * 名称
     */
    private String name;

    eSuiTangWarType(int type, String name) {
        this.type = type;
        this.name = name;
    }

    public int getType() {
        return type;
    }

    public String getName() {
        return name;
    }

    public static eSuiTangWarType forValue(int type) {
        for (eSuiTangWarType warTypeEnum : values()) {
            if (warTypeEnum.getType() == type) {
                return warTypeEnum;
            }
        }
        return null;
    }
}
